home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / internet / net commander 1.0 / ISP / SCRPTLST / MV.CMD < prev    next >
Encoding:
Text File  |  1996-02-12  |  1.2 KB  |  70 lines

  1. #    Login.cmd for MV Communications
  2. #
  3. #trace on
  4. #
  5. # set up some strings for dialling up
  6. #
  7. if ![load $number]
  8.   if [query $number "Enter your dial up phone number"]
  9.     save $number
  10.   end
  11. end
  12. if ![load $username]
  13.   if [username "Enter your login username"]
  14.     save $username
  15.   end
  16. end
  17. if ![load $password]
  18.   if [password "Enter your login password"]
  19.     save $password
  20.   end
  21. end
  22. $modemsetup = "&c1&k3"
  23. $prompt = ">"
  24. $userprompt = "sername:"
  25. $passprompt = "assword:"
  26. $slipcmd = "slip"
  27. $addrtarg = "Your address is"
  28. $pppcmd = "ppp"
  29.  
  30. %attempts = 10
  31. #
  32. #
  33. #----------------------------------------------------------
  34. #
  35. # initialize modem
  36. #
  37. output "atz"\13
  38. if ! [input 10 OK\n]
  39.   display "Modem is not responding"\n
  40.   abort
  41. end
  42. #
  43. # setup our modem commands
  44. #
  45. output "at"$modemsetup\13
  46. input 10 OK\n
  47. #
  48. # send phone number
  49. #
  50. %n = 0
  51. repeat
  52.   if %n = %attempts
  53.     display "Too many dial attempts"\n
  54.     abort
  55.   end
  56.   output "atdt"$number\13
  57.   %ok = [input 60 CONNECT]
  58.   %n = %n + 1
  59. until %ok
  60. input 10 \n
  61. #
  62. #  wait till it's safe to send because some modem's hang up
  63. #  if you transmit during the connection phase
  64. #
  65. wait 30 dcd
  66. #
  67. # now prod the terminal server
  68. #
  69. output \13
  70.